// 封装本地存储
window.local={
    set:(key,value)=>{
        localStorage.setItem(key,JSON.stringify(value));
    },
    get:key=>localStorage.getItem(key),
    remove:key=>localStorage.removeItem(key),
    clear:()=>{
        localStorage.clear();
    }
}